package com.fhz.mvvmshopjava.ui.home;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.ViewModel;

import com.fhz.mvvmshopjava.core.BaseRepository;
import com.fhz.mvvmshopjava.core.BaseViewModel;
import com.fhz.mvvmshopjava.entity.Banner;
import com.fhz.mvvmshopjava.utils.UserManager;
import com.fhz.utilsfhz.ApiResponse;

import java.util.List;

import javax.inject.Inject;

import dagger.hilt.android.lifecycle.HiltViewModel;

@HiltViewModel
public class HomeViewModel extends BaseViewModel<HomeRepository> {


    @Inject
    public HomeViewModel(HomeRepository repository) {
        super(repository);
    }

    public LiveData<ApiResponse<List<Banner>>> getBanner(){
        return repository.getBanner();
    }

}